//
//  ViewController.m
//  HSC_AreaCode
//
//  Created by 红沙尘 on 17/4/24.
//  Copyright © 2017年 红沙尘. All rights reserved.
//

#import "ViewController.h"
#import "SelectPhoneAreaCodeVC.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)show {
    
    SelectPhoneAreaCodeVC *vc = [[SelectPhoneAreaCodeVC alloc] init];
    vc.block = ^(NSString *areaCode,NSString *countryName,NSString *stateAbbreviation) {
        NSLog(@"areaCode = %@",areaCode);
        NSLog(@"countryName = %@",countryName);
        NSLog(@"stateAbbreviation = %@",stateAbbreviation);
    };
    [self presentViewController:vc animated:YES completion:nil];
}


@end
